package com.woniuxy.kaer.system.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author sun
 * @since 2025年02月17日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("resource")
public class Resources implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    @TableField("resource_name")
    private String resourceName;

    @TableField("router")
    private String router;

    /**
     * 菜单 或者 按钮
     */
    @TableField("type")
    private String type;

    /**
     * 0是菜单 其他是该节点里面的按钮
     */
    @TableField("parent")
    private Integer parent;


}
